function loadSetSkillBookMain() {
  $('.append').remove()
  $('#mainContent').append(template('t_setSkillBookMain'))

  exit()

  setBagSkillBook()
  var pos

  $('.setSkillBook').css('display', 'none')

  request.getEquipments(function(res){
    player.equipments = res.equipments
    if (player.equipments.soul) {
      var soul = player.equipments.soul
      var info = getEquipmentInfo(soul)
      $('.soulInfo').html('魂器<br>' + info)
    }
  })

  function setBagSkillBook() {
    initPackag(function() {
      var items = player.bag.items
      $('.skillBook').remove()
      for (var i in items) {
        if (items[i]) {
          var templateId = items[i].templateId
          type = Math.floor(templateId / 10000)
          if (type === 22) {
            $('.skillBooks').append('<div class="skillBook" value="' + i + '">' + propName[templateId] + '</div>')
          }
        }
      }

      $('.skillBook').click(function() {
        $('.skillBook').removeClass('select')
        pos = parseInt($(this).attr('value'))
        $(this).addClass('select')
        if (!player.equipments.soul) {
          showMessage('你身上没有装备魂器')
          return
        }
        var templateId = player.bag.items[pos].templateId
        var itemConfig = templateConfig.total[templateId]
        $('.bookName').html('<span class="icon-' + skillsSvgs[templateId] + '"></span><br><span class="desc">' + itemConfig.desc + '</span>')
        $('.setSkillBook').css('display', 'block')
      })

      $('.setSkillBook').click(function() {
        request.setSkillBook(pos, function(res) {
          loadSetSkillBookMain()
          if (res.error === 4) {
            showMessage('已经有相同的技能,该技能书无法附魂')
          } else if (res.error === 0) {
            if (res.result === -2) {
              showMessage('附魂失败')
            } else if (res.result === -1) {
              showMessage('附魂成功')
            } else {
              showMessage('附魂成功,替换了' + propName[res.result] + '技能')
              loadSetSkillBookMain()
            }
          }
        })
      })
    })
  }
}
